import { Button, Result } from 'antd';
import { useNavigate } from 'react-router-dom';
import { MANAGE_LIST } from '../router';
const Notfound = () => {
	const nav = useNavigate();
	return (
		<Result
			status="404"
			title="404"
			subTitle="Sorry, 你访问的页面不存在"
			extra={
				<Button type="primary" onClick={() => nav(MANAGE_LIST)}>
					Back Home
				</Button>
			}
		/>
	);
};

export default Notfound;
